<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8" />
		<title>联盟荣耀值明细</title>
		<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0' />
		<link rel="stylesheet" href="css/honorVal.css" />
		<link rel="stylesheet" type="text/css" href="css/hehua.css" />
		<script src="js/jquery.min.js" type="text/javascript" charset="utf-8"></script>
		<script src="//res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
		<script src="//res.qiaomukeji.com/js/chomoo-weixin.js?v=3"></script>
		<script type="text/javascript" src="js/moduls/islogin.js"></script>
		<script src="js/moduls/LotusRec.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript" src="js/adapter.js"></script>
		<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>

	</head>

	<body>
		<div class="top">
			<div class="top-logo">
			</div>
			<div class="top-theme">
			</div>
			<div class="top-title">
			</div>

			<div class="top-btnBack" onclick="history.go(-1);">
			</div>
		</div>
		<div class="bottom">
			<div class="bottom-logo2">
			</div>
		</div>

		<div class="content">

			<div class="middlePath">
				<div class="title">
					<img src="img/honorVal.png" alt="">
				</div>
				<div class="line">
					<img src="img/line.png" alt="">
				</div>
				<div class="midContent">
					<div class="hoValue">

						<span>荣誉值 </span><span class="place">{{honorNum}}</span>
					</div>
				</div>
				<div class="hhtable">
					<div class="hhtable-content" style="height: 3.4rem;">
						<div class="hhtable-header">
							<table>
								<thead>
									<tr>
										<td style="width: 30%;">来源</td>
										<td style="width: 30%;">荣誉值</td>
										<td style="width: 40%;;">时间</td>
									</tr>
								</thead>

							</table>
						</div>
						<div class="hhtable-body">
							<table>
								<tbody>
									<tr v-for="honorVal in honorVals" :key="honorVal.id">
										<td style="width: 30%;">{{honorVal.key}}</td>
										<td style="width: 30%;">{{honorVal.count?"+"+honorVal.count:""}}</td>
										<td style="width: 40%">{{honorVal.createdAt}}</td>
									</tr>
								</tbody>
							</table>
						</div>
					</div>
				</div>

				<div class="page">
					<!--<span>页码</span>
					<span>1</span>
					<span>2</span>
					<span>3</span>-->

				</div>

			</div>

		</div>

		<script>
			function getPara(_key) {
				var reg = new RegExp("(^|&)" + _key + "=([^&]*)(&|$)");
				var r = window.location.search.substr(1).match(reg);
				if(r != null) return unescape(r[2]);
				return null;
			}
			var id = getPara("teamId") || 1;
			var app = new Vue({
				el: '.content',
				data: {
					honorNum: '',
					honorVals: []
				}
			})

			getHonorRec(id, function(_res) {
				for(var i = 0; i < _res.teamRec.length % 8; i++) {
					var t_team = {
						"key": "",
						"count": "",
						"createdAt": ""
					}
					_res.teamRec.push(t_team)
				}
				app.honorNum = _res.honorNum;
				app.honorVals = _res.teamRec;
			})
		</script>

	</body>

</html>